package com.hsc.www.customLoginForm;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
public class MyController {

    @RequestMapping(value = {"/","welcomePage"})
    public String welcomePage(Map map) {
        map.put("message", "欢迎页");
        return "index";
    }

    @RequestMapping(value = "publicPage")
    public String publicPage(Map map) {
        map.put("message", "公开内容");
        return "index";
    }

    @RequestMapping(value = "securityPage")
    public String securityPage(Map map) {
        map.put("message", "私密内容");
        return "index";
    }


    @RequestMapping(value = "loginPage")
    public String loginPage() {
        return "login";
    }



}
